table of contents
COREDUMPCTL(1) | coredumpctl | COREDUMPCTL(1) |
NAME¶
coredumpctl - Retrieve coredumps from the journal
SYNOPSIS¶
coredumpctl [OPTIONS...] {COMMAND} [PID|COMM|EXE|MATCH...]
DESCRIPTION¶
coredumpctl may be used to retrieve coredumps from systemd-journald(8).
OPTIONS¶
The following options are understood:
--no-legend
-1
-F, --field=
-o, --output=FILE
-h, --help
--version
--no-pager
The following commands are understood:
list
info
dump
gdb
MATCHING¶
A match can be:
PID
COMM
EXE
MATCH
EXIT STATUS¶
On success, 0 is returned; otherwise, a non-zero failure code is returned. Not finding any matching coredumps is treated as failure.
EXAMPLES¶
Example 1. List all the coredumps of a program named foo
# coredumpctl list foo
Example 2. Invoke gdb on the last coredump
# coredumpctl gdb
Example 3. Show information about a process that dumped core, matching by its PID 6654
# coredumpctl info 6654
Example 4. Extract the last coredump of /usr/bin/bar to a file named bar.coredump
# coredumpctl -o bar.coredump dump /usr/bin/bar
SEE ALSO¶
systemd-coredump(8), coredump.conf(5), systemd-journald.service(8), gdb(1)
systemd 219 |